
import Mock from 'mockjs2'
import { builder, getQueryParameters, getBody } from '../util'

const upload = options => {
  const body = getBody(options)
  console.log('upload body', body)
  const data = {
    url: 'https://img1.baidu.com/it/u=1486134966,661096340&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=500'
	// url: 'http://video.699pic.com/videos/72/26/69/b_DYfXHUGrVvWT1688722669.mp4'
  }
  return builder(data)
}
  
  
Mock.mock(/\/api\/file\/upload/, 'post', upload)
